#include "GameInstance.h"

namespace Alice
{
    GameInstance::GameInstance(void* inOuter)
    {
        mOuter=inOuter;
    }

    void GameInstance::InitializeStandalone(const char* inWorldName)
    {
        mWorldContext=((Engine*)mOuter)->CreateNewWorldContext(EWorldType::Game);
        mWorldContext->mGameInstance=this;
        World*dummyWorld=World::CreateWorld(EWorldType::Game,false);
        dummyWorld->mGameInstance=this;
        mWorldContext->mWorld=dummyWorld;
    }
}